<script src="https://www.google.com/jsapi"></script>
<script src="js/rawinflate.js"></script>
<div id="visualization" style="width: 600px; height: 400px;">Loading chart  <img src="load.gif" alt="..."/></div>
<script type="text/javascript">
function b64de(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var n,r,i,s,o,u,a,f,l=0,c=0,h="",p=[];if(!e){return e}e+="";do{s=t.indexOf(e.charAt(l++));o=t.indexOf(e.charAt(l++));u=t.indexOf(e.charAt(l++));a=t.indexOf(e.charAt(l++));f=s<<18|o<<12|u<<6|a;n=f>>16&255;r=f>>8&255;i=f&255;if(u==64){p[c++]=String.fromCharCode(n)}else if(a==64){p[c++]=String.fromCharCode(n,r)}else{p[c++]=String.fromCharCode(n,r,i)}}while(l<e.length);h=p.join("");return h}
function decode(str) { return decodeURIComponent(escape(RawDeflate.inflate(b64de(str))));}
google.load("visualization", "1.0");
google.setOnLoadCallback(function() {
	if(window.location.hash) {
		var chartData = window.location.hash.substr(1);
		var decodedData = decode(chartData);
		if(decodedData != null) {
		    google.visualization.drawChart(decodedData);
		} else alert("There seems to be something wrong with the url");
	} else alert("There seems to be something wrong with the url");
});
</script>
